const target = process.env
module.exports = {
  devServer: {
    // 所有的接口请求代理
    proxy: {
      '/api': {
        target: target,
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^api': ''
        }
      }
    }
  },
  publicPath: process.env.NODE_ENV === 'production' ? '/pdyb/' : '/'
}
